package javagame;

import org.newdawn.slick.*;
import org.newdawn.slick.state.*;

public class Menu extends BasicGameState{
	Image PressStart;
	private SpriteSheet SWS;
	private Animation SWA;
	
	public Menu(int state){
	}
	
	public void init(GameContainer gc, StateBasedGame sbg) throws SlickException{
		PressStart = new Image("res/PressStart.png");
		SWS = new SpriteSheet("res/walking.png",24,32);
		SWA = new Animation(SWS, 300);
	}
	
	public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException{
		Image Logo = new Image("res/Start Screen/Kingdom Heart Logo.png");
		g.drawImage(Logo,0,0);
		Image Start = new Image("res/Start Screen/Start.png");
		g.drawImage(Start,400,50);
		PressStart.draw(0, 300);
		SWA.draw(100, 300);
	}
	
	public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{
		Input input = gc.getInput();
		if(input.isKeyDown(Input.KEY_ENTER)){
			sbg.enterState(1);
	}
	
	}
	public int getID(){
		return 0;
	}
}

